home *** CD-ROM | disk | FTP | other *** search
- Path: mozart.wg.icl.co.uk!usenet
- From: Adel El-Beik <A.El-Beik@man0506.wins.icl.co.uk>
- Newsgroups: comp.lang.c++
- Subject: (no subject)
- Date: 10 Apr 1996 16:18:47 GMT
- Organization: ICL
- Distribution: world
- Message-ID: <4kgn17$5bb@mozart.wg.icl.co.uk>
- NNTP-Posting-Host: 145.227.55.172
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
-
- Can anyone explain why line 1 doesn't get passed MSVC++ 4.00
- compiler. Whereas line 2 does. MSVC++ complains it cannot perform
- the conversion.
-
-
- typedef long bar[2][2];
- typedef const long (*const_bar)[2];
-
-
- void func( const bar param ){}
-
-
-
-
- void main()
- {
- bar x;
-
- func( x ); // 1
-
- func( (const_bar)x ); // 2
- }
-
-
- As far as I know ( Apr 95 DWP ) an implicit conversion which adds the
- const should take place ???
-
- Adel.
-
-